package com.swadar.helper;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.swadar.beans.dataobject.BrandDO;
import com.swadar.beans.dataobject.CategoryDO;
import com.swadar.beans.valueobject.ProductVO;
import com.swadar.beans.valueobject.UserVO;
import com.swadar.dao.CommonDAO;

@Component
public class HomePageHelper {

	@Autowired
	private CommonDAO commonDAO;
	
	
	public List<ProductVO> getProductVOList(boolean isBarware){
		List<ProductVO> productVOList = commonDAO.getProductList(isBarware);
		return productVOList;
	}
	
	public Integer isValidUser(UserVO userVo){
		Integer countValue = commonDAO.isValidUser(userVo);
		return countValue;
	}
	
	public List<CategoryDO> getCategoryDOList(){
		List<CategoryDO> categoryList = commonDAO.getCategoryList();
		return categoryList;
	}
	
	public List<BrandDO> getBrandImage(){
		List<BrandDO> imageList = commonDAO.getBrandImage();
		return imageList;
	}
	
}
